﻿<Window
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="clr-namespace:iTuner"
  xmlns:controls="clr-namespace:iTuner.Controls"
  xmlns:resx="clr-namespace:iTuner.Properties"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  x:Class="iTuner.SplashWindow"
  x:ClassModifier="internal"
  x:Name="Window"
  Title="iTuner"
  Width="207" Height="142" WindowStyle="None" mc:Ignorable="d"
  ShowInTaskbar="False" ResizeMode="NoResize" WindowStartupLocation="CenterScreen"
  AllowsTransparency="True" Background="Transparent">

  <Window.Resources>
    <Style TargetType="TextBlock">
      <Setter Property="FontSize" Value="12"/>
      <Setter Property="FontFamily" Value="Calibri"/>
      <Setter Property="Margin" Value="0,0,5,0"/>
      <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>
  </Window.Resources>

  <!-- border must have a right/bottom margin to accomodate the drop-shadow -->

  <Border
    x:Name="mainBorder" CornerRadius="5" Padding="1" Margin="0,0,8,8"
    Background="{StaticResource iTunesOutline}">
    <Border.Effect>
      <DropShadowEffect BlurRadius="6" ShadowDepth="6" Opacity="0.30"/>
    </Border.Effect>

    <Border
      CornerRadius="5" Padding="0"
      Background="{StaticResource iTunesBackground}">

      <StackPanel Orientation="Vertical" Margin="5">

        <local:DetailPanel Margin="0,0,0,12">
          <TextBlock x:Name="titleBlock" Text="iTuner 1.0" FontWeight="Bold" Background="Transparent" />
        </local:DetailPanel>

        <TextBlock Text="{x:Static resx:Resources.SplashWindow_Starting}" HorizontalAlignment="Center" />
        <Viewbox
          Width="40" Height="40" Margin="0,18,0,0"
          VerticalAlignment="Center" HorizontalAlignment="Center">
          <controls:ProgressCircle />
        </Viewbox>
      </StackPanel>

    </Border>
  </Border>
</Window>